package cn.bytecollege.mapper;

import cn.bytecollege.model.OrderDetail;
import cn.bytecollege.model.Orders;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface OrderMapper extends BaseMapper<Orders> {
    @Update("update orders set send_user_id=null where order_id=#{orderId}")
    int updateSendIdById(Orders orders);


    void selectList(QueryWrapper<OrderDetail> queryWrapper);
}
